package com.grq.mis.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.beetl.sql.annotation.entity.AutoID;
import org.beetl.sql.annotation.entity.Table;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor

@ApiModel("商品表")
@Table(name = "t_item")
public class Item implements Serializable {


    @ApiModelProperty("商品ID")
    @AutoID
    private Long id;

    @ApiModelProperty("名称")
    private String title;
    @ApiModelProperty("简介")
    private String introduction;

    @ApiModelProperty("所属分类ID")
    private Long categoryId;
    @ApiModelProperty("分类名称")
    private String categoryName;

    @ApiModelProperty("主图1")
    private String mainImg1Url;

    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("创建人ID")
    private Long createUserId;

    @ApiModelProperty("价格")
    private Long price;

    @ApiModelProperty("商品总库存")
    private Long totalCount;

    @ApiModelProperty("剩余库存")
    private Long leftCount;

    @ApiModelProperty("商户ID")
    private Long departmentId;
    @ApiModelProperty("商户名称")
    private String departmentName;

}
